run time architecture of spark application